Skip to content

Conversation

@wiktorn
Copy link
Contributor

@wiktorn wiktorn commented Mar 12, 2017

Two small improvements for shell scripts.

wiktorn added 2 commits March 12, 2017 23:01
If DB_DIR is not a directory, which may happen when dispatcher is not yet
started, refuse to work further as nothing good will come from it.
When auto is set as REPLICATION_ID, try to guess the latest/greatest file that
is present locally.
wiktorn added 5 commits March 13, 2017 00:04
Instead of generating areas in 3 seconds intervals, check how much time it
took to generate the areas and sleep to reach average `desired_cpu_load`.

If you set it to:
1 - script will sleep 99x more than it works (so average cpu load is 1%)
50 - script will sleep the same time as it works (so average cpu load is 50%)
100 - script will sleep only 3 seconds (hardcoded minimum) giving average cpu
    load 100%
@gy-mate
Copy link

gy-mate commented Aug 28, 2025

@drolbr Could you please check this PR? As far as I see, it was created in connection with #374.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants